package com.xhtt.modules.cfg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.modules.cfg.entity.CfgPumpInfo;
import com.xhtt.modules.cfg.entity.CfgPumpRelate;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 泵库 服务类
 * </p>
 *
 * @author feipc
 * @since 2019-02-20
 */
public interface CfgPumpInfoService extends IService<CfgPumpInfo> {

    PageUtils queryPage(Map<String, Object> params);

    void updatePump(CfgPumpInfo cfgPumpInfo);

    void addPump(CfgPumpInfo cfgPumpInfo);

    void updateRelate(List<CfgPumpRelate> pumpRelateList);

    List<CfgPumpRelate> getRelateObject(Integer pumpId);

    void updateRelateObject(List<CfgPumpRelate> relates);

    void updateUsed(List<Integer> upPumpIds, Integer productId, String productName);

    void flushProduct(List<Integer> collect);

    void updateUnUsed(List<Integer> upPumpIds);

    PageUtils logList(Map<String,Object> params);

    void updateRfid(CfgPumpInfo cfgPumpInfo);
}
